<%@ page import="java.sql.*" %>
<%@include file="connection.jsp" %>
<%
String name = request.getParameter("txtname");
String email = request.getParameter("txtemail");
String password = request.getParameter("txtpassword");
String jeniskel = request.getParameter("jeniskelamin");
String username = request.getParameter("txtusername");
try {
String sql="INSERT INTO t_user (name, email, password, jeniskel, username) VALUES('"+ name + "', '"+ email + "', md5('"+ password + "'), '"+ jeniskel + "', '"+ username +"')";
//out.print(sql);
stmt.executeUpdate(sql);
stmt.close();
conn.close();

String redirectURL = "login.html";
	response.sendRedirect(redirectURL);
}
	catch(Exception e)
	{
		out.println(e);
	}
%>